<?php

    $config['map'] = array(
       'User' => 'User/username',
      'Role' => 'User/group_id',
    );

   $config['alias'] = array(
       'Role/4' => 'Role/editor',
   );

    $config['roles'] = array(
      'Role/admin' => null,
       'Role/accountant' => null,
       'Role/editor' => null,
      'Role/manager' => 'Role/editor, Role/accountant',
       'User/jeff' => 'Role/manager',
    );

   $config['rules'] = array(
      'allow' => array(
      	'*' => 'Role/admin',
       	'controllers/users/(dashboard|profile)' => 'Role/default',
      	'controllers/invoices/*' => 'Role/accountant',
       	'controllers/articles/*' => 'Role/editor',
       	'controllers/users/*'  => 'Role/manager',
      	'controllers/invoices/delete'  => 'Role/manager',
       ),
      'deny' => array(
       	'controllers/invoices/delete' => 'Role/accountant, User/jeff',
      	'controllers/articles/(delete|publish)' => 'Role/editor',
       ),
    );


